package com.baitiaojun.security.core.service;

public interface PermissionService {

    /**
     * 所有权限标识
     */
    String ALL_PERMISSION = "*:*:*";

    /**
     * 管理员角色权限标识
     */
    String ADMIN = "admin";

    boolean hasAnyPermission(String permissions);

    boolean hasPermission(String permission);

    boolean hasAnyRole(String roles);

    boolean hasRole(String role);
}
